package org.example.jdbcOperator.entity;

import lombok.Data;
import org.example.jdbcOperator.annotation.Column;

import java.sql.Timestamp;

/**
 * 实体基类
 */
@Data
public class BaseEntity {
    @Column(name = "id", primaryKey = true,  autoIncrease = true)
    protected int id;
    @Column(name = "create_time", updateEnable = false, autoCreateTime = true)
    protected Timestamp createTime;
    @Column(name = "update_time", autoCreateTime = true)
    protected Timestamp updateTime;
}
